package devil.pojo;

import java.util.Calendar;

public class Time
{
	private Integer time = null;
	
	public Time()
	{
		Calendar calendar = Calendar.getInstance();
		time = calendar.get(Calendar.HOUR) * 100
				+ calendar.get(Calendar.MINUTE);
	}
	
	
	public Time(int time)
	{
		this.time = time;
	}
	
	public int getHour()
	{
		return time / 100;
	}
	
	public int getMinute()
	{
		return time - getHour();
	}
	
	public Integer getTime()
	{
		return time;
	}
	
	public void setTime(Integer time)
	{
		this.time = time;
	}
}
